import { defineStore } from "pinia";
import { ref } from 'vue';

export const useShowLoginDialogStore = defineStore('yunzhou_showLoginDialog', () => {
  const showLoginDialog = ref(false)

  const getShowLoginDialog = () => {
    return showLoginDialog.value
  }

  const setShowLoginDialog = (condition) => {
    showLoginDialog.value = condition
  }

  const removeShowLoginDialog = () => {
    showLoginDialog.value = false
  }

  return { showLoginDialog, getShowLoginDialog, setShowLoginDialog, removeShowLoginDialog }
});